from django.urls import path
from rest_framework.routers import SimpleRouter
from apps.study.views import StudentViewSet, ClassesViewSet

urlpatterns = [
    # path('student/', StudentViewSet.as_view({'get':'list', 'post':'create'})),
    # path('student/<pk>', StudentViewSet.as_view({'get':'retrieve', 'put':'update', 'delete':'destroy'})),

]
router = SimpleRouter()
router.register('student', StudentViewSet)
router.register('classes', ClassesViewSet)
urlpatterns += router.urls